home *** CD-ROM | disk | FTP | other *** search
/ 1st Multimedia Mac Shareware / Multimedia Shareware CD-ROM - BetaCorp.iso / Businessƒ / TimeMgmt / AppointmentMaster™ / stack_-1.xml < prev   
Encoding:
Extensible Markup Language  |  1992-08-11  |  9.3 KB  |  22 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
  3. <stack>
  4.     <name>in</name>
  5.     <id>-1</id>
  6.     <cardCount>2</cardCount>
  7.     <cardID>3049</cardID>
  8.     <listID>4752</listID>
  9.     <cantModify><false /></cantModify>
  10.     <cantDelete><false /></cantDelete>
  11.     <cantAbort><false /></cantAbort>
  12.     <cardSize>
  13.         <width>512</width>
  14.         <height>342</height>
  15.     </cardSize>
  16.     <script>on closeStack
  17. global whosThere
  18. put "Have Yourself a SUPER GOOD DAY" && whosThere && "!" into message box
  19. doMenu "Compact Stack"
  20. RemShow Meo
  21. show menubar
  22. hide message box
  23. visual effect zoom out
  24. end closeStack
  25.  
  26.  
  27.  
  28. on update theDate
  29. global whosThere
  30. ask "What is your name, Please?" with field id 26
  31. put it into field id 26
  32. put it into whosThere
  33. put the long date into field id 5 of card id 3049
  34. theSchedule schedule
  35. end update
  36.  
  37.  
  38.  
  39. on theSchedule schedule
  40. set cursor to 4
  41. put empty into field id 6
  42. put empty into field id 7
  43. put empty into field id 8
  44. put empty into field id 9
  45. put empty into field id 10
  46. put empty into field id 11
  47. put empty into field id 12
  48. put empty into field id 13
  49. put empty into field id 14
  50. put empty into field id 15
  51. put empty into field id 16
  52. put empty into field id 17
  53. put empty into field id 30   --field "Links" is a hidden field
  54. get field id 5
  55. convert it to seconds
  56. put it into thisDay
  57. put 1 into lineNumber
  58. repeat with x = 2 to (the number of cards)
  59. get (field id 2 of card x)  --field "Date"
  60. if it is empty then next repeat
  61. convert it to seconds
  62. if it = thisDay then
  63. put (the id of card x) into line lineNumber of field "Links"
  64. add 1 to lineNumber
  65. get field id 47 of card x  --field "My Name"
  66. if it = field id 26 of card id 3049 then
  67. get field id 43 of card x  --field "Appointment Time"
  68. put it into apptTime
  69. get field id 1 of card x   --field "ClientName"
  70. put it into temp2
  71. put the number of chars of temp2 into countChar
  72. put 37 into maxChar
  73. subtract countChar from maxChar
  74. get field id 6 of card x  --field "ApptDetails"
  75. put it into temp3
  76. put "," after char maxChar of temp3
  77. put empty into item 2 of temp3
  78. put empty into last char of temp3
  79. get apptTime  --a variable holding the appointment time.
  80. if it ‚â• 0900 and it ‚â§ 0914 or it ‚â• 900 and it ‚â§ 914¬¨
  81. or it = 9 then
  82. put temp2 && "‚Äî" & temp3 into line 1 of field id 6
  83. else
  84. if it ‚â• 0915 and it ‚â§ 0929 or it ‚â• 915 and it ‚â§ 929 then
  85. put temp2 && "‚Äî" & temp3 into line 2 of field id 6
  86. else
  87. if it ‚â• 0930 and it ‚â§ 0944 or it ‚â• 930 and it ‚â§ 944 then
  88. put temp2 && "‚Äî" & temp3 into line 3 of field id 6
  89. else
  90. if it ‚â• 0945 and it ‚â§ 0959 or it ‚â• 945 and it ‚â§ 959 then
  91. put temp2 && "‚Äî" & temp3 into line 4 of field id 6
  92. else
  93. if it ‚â• 1000 and it ‚â§ 1014 or it = 10 then
  94. put temp2 && "‚Äî" & temp3 into line 1 of field id 7
  95. else
  96. if it ‚â• 1015 and it ‚â§ 1029 then
  97. put temp2 && "‚Äî" & temp3 into line 2 of field id 7
  98. else
  99. if it ‚â• 1030 and it ‚â§ 1044 then
  100. put temp2 && "‚Äî" & temp3 into line 3 of field id 7
  101. else
  102. if it ‚â• 1045 and it ‚â§ 1059 then
  103. put temp2 && "‚Äî" & temp3 into line 4 of field id 7
  104. else
  105. if it ‚â• 1100 and it ‚â§ 1114 or it = 11 then
  106. put temp2 && "‚Äî" & temp3 into line 1 of field id 8
  107. else
  108. if it ‚â• 1115 and it ‚â§ 1129 then
  109. put temp2 && "‚Äî" & temp3 into line 2 of field id 8
  110. else
  111. if it ‚â• 1130 and it ‚â§ 1144 then
  112. put temp2 && "‚Äî" & temp3 into line 3 of field id 8
  113. else
  114. if it ‚â• 1145 and it ‚â§ 1159 then
  115. put temp2 && "‚Äî" & temp3 into line 4 of field id 8
  116. else
  117. if it ‚â• 1200 and it ‚â§ 1214 or it = 12 then
  118. put temp2 && "‚Äî" & temp3 into line 1 of field id 9
  119. else
  120. if it ‚â• 1215 and it ‚â§ 1229 then
  121. put temp2 && "‚Äî" & temp3 into line 2 of field id 9
  122. else
  123. if it ‚â• 1230 and it ‚â§ 1244 then
  124. put temp2 && "‚Äî" & temp3 into line 3 of field id 9
  125. else
  126. if it ‚â• 1245 and it ‚â§ 1259 then
  127. put temp2 && "‚Äî" & temp3 into line 4 of field id 9
  128. else
  129. if it ‚â• 100 and it ‚â§ 114 or it ‚â• 1300 and it ‚â§ 1314 or it = 1 then
  130. put temp2 && "‚Äî" & temp3 into line 1 of field id 10
  131. else
  132. if it ‚â• 115 and it ‚â§ 129 or it ‚â• 1315 and it ‚â§ 1329 then
  133. put temp2 && "‚Äî" & temp3 into line 2 of field id 10
  134. else
  135. if it ‚â• 130 and it ‚â§ 144 or it ‚â• 1330 and it ‚â§ 1344 then
  136. put temp2 && "‚Äî" & temp3 into line 3 of field id 10
  137. else
  138. if it ‚â• 145 and it ‚â§ 159 or it ‚â• 1345 and it ‚â§ 1359 then
  139. put temp2 && "‚Äî" & temp3 into line 4 of field id 10
  140. else
  141. if it ‚â• 200 and it ‚â§ 214 or it ‚â• 1400 and it ‚â§ 1414 or it = 2 then
  142. put temp2 && "‚Äî" & temp3 into line 1 of field id 11
  143. else
  144. if it ‚â• 215 and it ‚â§ 229 or it ‚â• 1415 and it ‚â§ 1429 then
  145. put temp2 && "‚Äî" & temp3 into line 2 of field id 11
  146. else
  147. if it ‚â• 230 and it ‚â§ 244 or it ‚â• 1430 and it ‚â§ 1444 then
  148. put temp2 && "‚Äî" & temp3 into line 3 of field id 11
  149. else
  150. if it ‚â• 245 and it ‚â§ 259 or it ‚â• 1445 and it ‚â§ 1459 then
  151. put temp2 && "‚Äî" & temp3 into line 4 of field id 11
  152. else
  153. if it ‚â• 300 and it ‚â§ 314 or it ‚â• 1500 and it ‚â§ 1514 or it = 3 then
  154. put temp2 && "‚Äî" & temp3 into line 1 of field id 12
  155. else
  156. if it ‚â• 315 and it ‚â§ 329 or it ‚â• 1515 and it ‚â§ 1529 then
  157. put temp2 && "‚Äî" & temp3 into line 2 of field id 12
  158. else
  159. if it ‚â• 330 and it ‚â§ 344 or it ‚â• 1530 and it ‚â§ 1544 then
  160. put temp2 && "‚Äî" & temp3 into line 3 of field id 12
  161. else
  162. if it ‚â• 345 and it ‚â§ 359 or it ‚â• 1545 and it ‚â§ 1559 then
  163. put temp2 && "‚Äî" & temp3 into line 4 of field id 12
  164. else
  165. if it ‚â• 400 and it ‚â§ 414 or it ‚â• 1600 and it ‚â§ 1614 or it = 4 then
  166. put temp2 && "‚Äî" & temp3 into line 1 of field id 13
  167. else
  168. if it ‚â• 415 and it ‚â§ 429 or it ‚â• 1615 and it ‚â§ 1629 then
  169. put temp2 && "‚Äî" & temp3 into line 2 of field id 13
  170. else
  171. if it ‚â• 430 and it ‚â§ 444 or it ‚â• 1630 and it ‚â§ 1644 then
  172. put temp2 && "‚Äî" & temp3 into line 2 of field id 13
  173. else
  174. if it ‚â• 445 and it ‚â§ 459 or it ‚â• 1645 and it ‚â§ 1659 then
  175. put temp2 && "‚Äî" & temp3 into line 4 of field id 13
  176. else
  177. if it ‚â• 500 and it ‚â§ 514 or it ‚â• 1700 and it ‚â§ 1714 or it = 5 then
  178. put temp2 && "‚Äî" & temp3 into line 1 of field id 14
  179. else
  180. if it ‚â• 515 and it ‚â§ 529 or it ‚â• 1715 and it ‚â§ 1729 then
  181. put temp2 && "‚Äî" & temp3 into line 2 of field id 14
  182. else
  183. if it ‚â• 530 and it ‚â§ 544 or it ‚â• 1730 and it ‚â§ 1744 then
  184. put temp2 && "‚Äî" & temp3 into line 3 of field id 14
  185. else
  186. if it ‚â• 545 and it ‚â§ 559 or it ‚â• 1745 and it ‚â§ 1759 then
  187. put temp2 && "‚Äî" & temp3 into line 4 of field id 14
  188. else
  189. if it ‚â• 600 and it ‚â§ 614 or it ‚â• 1800 and it ‚â§ 1814 or it = 6 then
  190. put temp2 && "‚Äî" & temp3 into line 1 of field id 15
  191. else
  192. if it ‚â• 615 and it ‚â§ 629 or it ‚â• 1815 and it ‚â§ 1829 then
  193. put temp2 && "‚Äî" & temp3 into line 2 of field id 15
  194. else
  195. if it ‚â• 630 and it ‚â§ 644 or it ‚â• 1830 and it ‚â§ 1844 then
  196. put temp2 && "‚Äî" & temp3 into line 3 of field id 15
  197. else
  198. if it ‚â• 645 and it ‚â§ 659 or it ‚â• 1845 and it ‚â§ 1859 then
  199. put temp2 && "‚Äî" & temp3 into line 4 of field id 15
  200. else
  201. if it ‚â• 700 and it ‚â§ 714 or it ‚â• 1900 and it ‚â§ 1914 or it = 7 then
  202. put temp2 && "‚Äî" & temp3 into line 1 of field id 16
  203. else
  204. if it ‚â• 715 and it ‚â§ 729 or it ‚â• 1915 and it ‚â§ 1929 then
  205. put temp2 && "‚Äî" & temp3 into line 2 of field id 16
  206. else
  207. if it ‚â• 730 and it ‚â§ 744 or it ‚â• 1930 and it ‚â§ 1944 then
  208. put temp2 && "‚Äî" & temp3 into line 3 of field id 16
  209. else
  210. if it ‚â• 745 and it ‚â§ 759 or it ‚â• 1945 and it ‚â§ 1959 then
  211. put temp2 &&"‚Äî" & temp3 into line 4 of field id 16
  212. else
  213. if it ‚â• 800 and it ‚â§ 814 or it ‚â• 2000 and it ‚â§ 2014 or it = 8 then
  214. put temp2 && "‚Äî" & temp3 into line 1 of field id 17
  215. else
  216. if it ‚â• 815 and it ‚â§ 829 or it ‚â• 2015 and it ‚â§ 2029 then
  217. put temp2 && "‚Äî" & temp3 into line 2 of field id 17
  218. else
  219. if it ‚â• 830 and it ‚â§ 844 or it ‚â• 2030 and it ‚â§ 2044 then
  220. put temp2 && "‚Äî" & temp3 into line 3 of field id 17
  221. else
  222. if it ‚â• 845 and it ‚â§ 859 or it ‚â• 2045 and it ‚â§ 2059 then
  223. put temp2 && "‚Äî" & temp3 into line 4 of field id 17
  224. end if
  225. end if
  226. end if
  227. end if
  228. end if
  229. end if
  230. end if
  231. end if
  232. end if
  233. end if
  234. end if
  235. end if
  236. end if
  237. end if
  238. end if
  239. end if
  240. end if
  241. end if
  242. end if
  243. end if
  244. end if
  245. end if
  246. end if
  247. end if
  248. end if
  249. end if
  250. end if
  251. end if
  252. end if
  253. end if
  254. end if
  255. end if
  256. end if
  257. end if
  258. end if
  259. end if
  260. end if
  261. end if
  262. end if
  263. end if
  264. end if
  265. end if
  266. end if
  267. end if
  268. end if
  269. end if
  270. end if
  271. end if
  272. end if
  273. end if
  274. end repeat
  275. end theSchedule
  276.  
  277.  
  278.  
  279. on RemShow Meo
  280. get the date
  281. convert it to dateItems
  282. if item 3 of it = 1 or item 3 of it =15 then
  283. beep 2
  284. put "Paid your SHAREWARE FEE yet ? If So‚ÄîTHANKS! If No ‚Äî PLEASE DO"
  285. wait 5 seconds
  286. play boing
  287. hide message box
  288. end if
  289. end RemShow
  290.  
  291.  
  292.  
  293. on openStack
  294. visual zoom in
  295. hide menubar
  296. hide message box
  297. show field id 25  --Copyright field-DO NOT REMOVE
  298. update theDate
  299. RemShow Meo
  300. end openStack
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307. </script>
  308.     <background id="2621" file="background_2621.xml" name="Schedule" />
  309.     <background id="3622" file="background_3622.xml" name="AppointmentCard" />
  310.     <card id="3049" file="card_3049.xml" marked="false" name="ApptSchedule" owner="2621" />
  311.     <card id="2289" file="card_2289.xml" marked="false" name="FirstCardOfApptCards" owner="3622" />
  312. </stack>
  313.